package service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mvc.action.ActionInterface;
import mvc.service.ActionObject;

public class StudentService implements ActionInterface{

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response, ActionObject object,
			Map<String, String> map) {
		StudentBean bean=(StudentBean)object;
		request.setAttribute("username", bean.getName());
		request.setAttribute("age", bean.getAge());
		return map.get("student");
	}

}
